#!/usr/bin/env python
# encoding: utf-8
"""
@author:zwb
@file: other.py
@contact: zwb15083976291@163.com
@time: 2021/11/11
"""
TOKEN_SALT = "ftyhyc@12138"
TOKEN_EXPIRES_IN = 60 * 60 * 12
BLOG_SALT_KEY = "blog_admin_salt"  # 登录盐值
SEARCH_ARTICLES_KEY = 'search_articles_key'  # 搜索的缓存key
SEARCH_ARTICLES_KEY_EXPIRE = 60 * 60 * 24 * 7  # 搜索的缓存过期时间

TOKEN_CURRENT_LIMITING_KEY = "token_current_limiting_bucket_key"  # 令牌限流桶 key
TOKEN_CURRENT_LIMITING_TIME_ZONE = 60  # 限流的限制时间 单位 秒
TOKEN_CURRENT_LIMITING_CAPACITY = 120  # 限制时间的允许访问次数
